package p2psim.global;

public class Variable {

	private static int endTimeStamp = 0;

	private static int startTimeStamp = 0;

	private static int currentTimeStamp = 0;

	public static int getEndTimeStamp() {
		return endTimeStamp;
	}

	public static void setEndTimeStamp(int endTimeStamp) {
		Variable.endTimeStamp = endTimeStamp;
	}

	public static int getStartTimeStamp() {
		return startTimeStamp;
	}

	public static void setStartTimeStamp(int startTimeStamp) {
		Variable.startTimeStamp = startTimeStamp;
	}

	public static synchronized int getCurrentTimeStamp() {
		return currentTimeStamp;
	}

	public static synchronized void setCurrentTimeStamp(int currentTimeStamp) {
		Variable.currentTimeStamp = currentTimeStamp;
	}

	public static synchronized void increaseCurrentTimeStamp() {
		setCurrentTimeStamp(getCurrentTimeStamp()+1);
	}
}
